
import unittest
from config.Config import *
from api.Api import Api


class Tj_Yh(unittest.TestCase):

    def test_tj_yh(self):
        api_ele = ['post',gl_tj_url,gl_tj_data,gl_tj_headers]
        Api().send_api(api_ele=api_ele)
        self.value = Api().api_json_assert()
        assert self.value['msg'] == '保存用户信息失败,登录帐号已存在！'
if __name__ == '__main__':
    unittest.main(verbosity=2)
